#!/bin/bash
OK=0
WARN=1
CRITICAL=2
UNKNOWN=3
PATH="/bin:/sbin:/usr/bin:/usr/sbin"


# #touch /usr/lib64/nagios/plugins/diskmonitor
touch /tmp/testdisk
if [ -w /tmp/testdisk ]
then
                echo " local disk can write"
                exit $OK
else
                echo " local disk only read"
                exit $CRITICAL
fi

